from django.conf.urls import url

from products import views

urlpatterns = [
    url(r"^prod/$", views.ProductViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r"^prod/(?P<pk>\d+)/$", views.ProductViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),

    url(r"^inputprod/$", views.ProductXLSDInput.as_view()),
    url(r"^inputnewasin/$", views.NewASIN2MysqlView.as_view()),
    url(r"^deleteallprod/$", views.DeleteAll.as_view()),
    url(r"^ttttest/$", views.TTTTTTest.as_view()),
    url(r"^listproduct/$", views.ListProductView.as_view()),

]